<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的定制</title>
<link href="css/shoppingCarAndMyCustom.css" type="text/css" rel="stylesheet" />
<link href="css/myfriend_friendactivity.css" type="text/css" rel="stylesheet" />
<link href="css/myfriend-friendactivity_right_child.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/myCustonAndShoppingCar/MyCustoms.js"></script>
<link rel="stylesheet" type="text/css" href="/webbei/js/bgjs/css/index.css" />
<script type="text/javascript" src="/webbei/js/bgjs/js/alixixi_jquery.min.js"></script>
<script type="text/javascript" src="/webbei/js/bgjs/js/script.js"></script>
<link rel="stylesheet" type="text/css" href="css/login.css" />
<link rel="stylesheet" type="text/css" href="css/custom.css" />
<script type="text/javascript" src="js/login.js"></script>
<link rel="stylesheet" href="jquery/css/ui-lightness/jquery-ui-1.9.0.custom.css" />
<script src="jquery/js/jquery-ui-1.9.0.custom.js"></script>
<script src="js/customjs/custom.js"></script>
<script type="text/javascript">
	function payment(){
		var flag=0;
		var a=document.getElementsByName("checkbox_payment");
		var a2="";
		for(var i=0;i<a.length;i++){
			if(a[i].checked){
				flag=1;
				a2=a2+a[i].value+",";
			}
		}
		if(flag==1){
			window.location.href="showShoppingCar.action?customId="+a2+"&f=0";
		}else{
			alert("请先选中将要付款的设计。");
			return;
		}
	}
</script>

</head>
<body>
	<div style="background-color:rgb(102,102,102); width:100%;">
		<div class="head" id="head">
			<div id="webbei_logol">
				<img src="img/logo.gif" />
			</div>
			<div class="usercando">
				<div class="usercando_dingzhi">
					<a href=""><img src="img/head_custom.gif" /> </a>
				</div>
				<div class="usercando_share">
					<a href=""><img src="img/head_share.gif" /> </a>
				</div>
			</div>
			<div class="search" id="search">
				<div style="width:100%; height:45px;"></div>
				<div style="padding-top:0px;">
					<div style="float:left;">
						<input type="text" value="" id="searchsomething" />
					</div>
					<div style="float:left;">
						<a href=""><img src="img/head_search_bt.gif" /> </a>
					</div>
				</div>
			</div>
			<div class="something_else">
				<div class="something_else_up">
					<div style="width:120px; float:left; padding-top:7px;">
						&nbsp;&nbsp;&nbsp;<a href="">转</a> &nbsp;<a href="">加关注</a>
					</div>
					<div
						style="width:100px; float:left; padding-top:2px; padding-left: 10px;">
						<a href=""><img src="img/login_txwb.png" /> </a> <a href=""><img
							src="img/login_rr.png" /> </a> <a href=""><img
							src="img/login_db.png" /> </a>
					</div>
				</div>
				<div class="something_else_down">
					<div
						style="width:125px; float:left; padding-top:5px; padding-left:10px;">
						<div style="float:left;">
							<img src="img/head_cart.gif" />
						</div>
						<div style="float:left; height:20px; padding-top:5px;">
							&nbsp;购物车(<a href="">2</a>)
						</div>
					</div>
					<div class="loginandresign">
						<div id="login_btn" style="float:left; cursor:pointer;">登陆</div>
						<div id="resign_btn" style="float:left; cursor:pointer;">|注册</div>
						<div id="login_level">
							<div class="login_level_email">
								邮箱：<input type="text" id="email" />
							</div>
							<div class="login_level_email">
								密码：<input type="text" id="pwd" />
							</div>
							<div class="remember_pwd">
								<input type="checkbox" id="checkbox" /> 记住密码&nbsp;&nbsp;<a
									href="">忘记密码？</a>
							</div>
							<div class="more_loginway">
								<img src="img/login_qq.png" /> <img src="img/tianya.png" /> <img
									src="img/twitter.png" /> <img src="img/tuita.png" /> <img
									src="img/msn.png" /> <img src="img/souhuweibo.png" /> <img
									src="img/qiyiqitan.png" /> <img src="img/more.png"
									id="moreway" />
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<br />
	<table>
		<tr>
			<td width="2%"></td>
			<td width="30%" valign="top">
				<div id="my_order_mydesign_content_left"
					class="my_order_mydesign_content_left">
					<div class="my_order_mydesign_friendinfo">
						<div class="my_order_mydesign_friendinfo_username">
							<div class="my_order_mydesign_friendinfo_username_img">
								<a href=""><img src="img/login_kj.png" /> </a>
							</div>
							<div class="my_order_mydesign_friendinfo_username_detail">
								<div class="my_order_mydesign_friendinfo_username_detail_name">
									<div
										style="width:115px; color:rgb(122,131,130); text-align:center; cursor:pointer; float:left; margin-top:0px;"
										id="username">Jack Chen</div>
								</div>
								<div class="my_order_mydesign_friendinfo_username_detail_renqi">
									指数：(<a href="" id="zhishu">128</a>)
								</div>
							</div>
						</div>
						<div class="my_order_mydesign_friendinfo_carinfo">
							自行车租赁系统给人们的出行带来了很大的方便，势必会成为城市交通发展的一个趋势。本项目将基于zigbee技术和GPS定位技术，旨在研制出一套使得市民能够在最短时间内找出距自己所处位置最近的自行车服务点的系统。本系统以每一个自行车服务点作为zigbee网络的基本节点，以部署在市区固定位置的zigbee信号接收终端为参考坐标，构建一个特定范围内的自组网络。市民可以通过自己的装有GPS芯片的智能手机访问zigbee网络，查询自身周围的自行车服务点的位置信息，以及对应服务点的车辆信息。
						</div>
						<div class="my_order_mydesign_friendinfo_carimg">
							<img src="img/test1.jpg" />
						</div>
					</div>
					<div class="my_order_mydesign_hisfriendinfo">
						<div class="my_order_mydesign_hisfriendinfo_title">他的好友</div>
						<div class="my_order_mydesign_search">
							<div class="my_order_mydesign_search_left">+好友列表</div>
							<div class="my_order_mydesign_search_right">
								<input type="text" value="" /> <span>搜索</span>
							</div>
						</div>
						<div class="my_order_mydesign_hisfriendinfo_child" id="child4">
							<!--好友排行榜节点-->
							<div class="my_order_mydesign_hisfriendinfo_child_username_img">
								<a href=""><img src="img/login_kj.png" /> </a>
							</div>
							<div
								class="my_order_mydesign_hisfriendinfo_child_username_detail">
								<div
									class="my_order_mydesign_hisfriendinfo_child_username_detail_name">
									<div class="friend_child_name" id="username">Jack Chen</div>
								</div>
								<div
									class="my_order_mydesign_hisfriendinfo_child_username_detail_renqi">
									指数：(<a href="" id="zhishu">128</a>)
								</div>
							</div>
						</div>
					</div>
				</div></td>
			<td width="5%"><br />
			</td>
			<td valign="top">
				<div class="myfriend_friendactivity_content_right_select">

					<div class="myfriend_friendactivity_content_right_select_myfriend">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							我的定制</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down">
							(<a href="">${OrdersNumber+CustomsNumber}件</a>)
						</div>
					</div>
					<div class="myfriend_friendactivity_content_right_select_myshare">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							我的分享</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down">
							(<a href="">11件</a>)
						</div>
					</div>
					<div class="myfriend_friendactivity_content_right_select_order">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							我的好友</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down">
							(<a href="">11位</a>)
						</div>
					</div>
					<div class="myfriend_friendactivity_content_right_select_mymoney">
						<div class="myfriend_friendactivity_content_right_select_order_up">
							我的金库</div>
						<div
							class="myfriend_friendactivity_content_right_select_order_down">
							(<a href="">980元</a>)
						</div>
					</div>
				</div> <br />
				<div class="shoppingCar_subtitle">
					&nbsp;&nbsp; <a href="javascript:void(0);" onclick="showMyDesign()">我的设计</a>
					<font color="blue">（${CustomsNumber}个）</font>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox"
						onclick="checkAll()" id="checkAllbox" />全选&nbsp;|&nbsp; <a
						href="javascript:void(0);" onclick="showMyOrder()">我的订单</a> <font
						color="blue">（${OrdersNumber}个）</font>
				</div> <br />
				<div style="display:display" id="myDesignTable">
					<table>
						<c:forEach items="${customList}" var="s">
							<tr>
								<td>
									<div class="shoppingCar_right_pic">
										<img src="img/resources/webbeiUserInfo/${s.userName}/userCustom/${s.customPic}" width="195px" height="168px"/>
									</div></td>
								<td>
									<div class="shoppingCar_right_pic">
										主题：${s.customName}<br /> 编号：${s.customId}<br /> 价格：￥${s.customPrice}<br />
										户名：${s.userName}<br /> 电话：${customer.userMobilePhone }<br />
										地址：${customer.userAddress }<br /> <br />
										设计时间：${s.customTime_bak} <br /> <br /> <input type="button"
											value="重设计" style="border-style:dashed;" onclick="redesign(${s.customId})"/> <input
											type="button" value="删除" style="border-style:dashed;"
											onclick="deleCustom(${s.customId})" />
											
											<c:if test="${s.idReview==1 }">
												<input type="button" value="去分享" style="border-style:dashed;"/>
											</c:if>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox"
											id="" name="checkbox_payment" value="${s.customId}" /> 付款
									</div></td>
							</tr>
						</c:forEach>
					</table>
					<br /> <br /> <br /> <input type="button" value="☜ 再定制"
						style="border-style:dashed;" class="myCustom_mainButton" />
					&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" value="去付款 ☞"
						style="border-style:dashed;" class="myCustom_mainButton"
						onclick="payment()" />
				</div>
				<div id="myOrderTable" style="display:none">
					<table>
						<c:forEach items="${ordersList}" var="o">
							<tr>
								<td>
									<div class="shoppingCar_right_pic">
										<img src="img/resources/webbeiUserInfo/${o.userName}/userOrder/${o.orderPic}" width="195px" height="168px"/>
									</div></td>
								<td>
									<div class="shoppingCar_right_pic">
										主题：${o.orderName }<br /> 编号：${o.orderId }<br /> 价格：￥${o.orderTotalPrice}<br />
										户名：${o.userName }<br /> 电话：${customer.userMobilePhone }<br />
										地址：${customer.userAddress }<br /> <br />
										设计时间：${o.orderTime_bak }<br /> 物流信息：${o.orderFreight}<br />
										<br /> 
										<c:if test="${o.orderState==0 }">
											<input type="button" value="去付款" style="border-style:dashed;"/>
										</c:if>
										<c:if test="${o.orderState==1 }">
											<input type="button" value="已付款" style="border-style:dashed;" disabled="disabled"/>
										</c:if>
										<c:if test="${o.orderState==2 }">
											<input type="button" value="已发货" style="border-style:dashed;" disabled="disabled"/>
										</c:if>
										<c:if test="${o.orderState==3 }">
											<input type="button" value="交易成功" style="border-style:dashed;" disabled="disabled"/>
										</c:if>
										<c:if test="${o.orderState!=0 }">
										 <input type="button"
											value="再购买" style="border-style:dashed;"
											onclick="repayment(${o.orderId })" />
										</c:if>
										<c:if test="${o.orderState==0 }">
										 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
										</c:if>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<c:if test="${o.isShare==1 }">
												<input type="button" value="去分享" style="border-style:dashed;" />
											</c:if>
											<c:if test="${o.isShare==0 }">
												<input type="button" value="已分享" style="border-style:dashed;" disabled="disabled"/>
											</c:if>
											
										
									</div></td>
							</tr>
						</c:forEach>
					</table>
				</div></td>
		</tr>
	</table>


	<div id="bottom">
		<div class="bottom">
			<font>All Content Copyright © 2012-2022 webbei company. All
				designs copyright by owner. Privacy Policy. Terms of Use.</font>
		</div>
	</div>
</body>
</html>